package com.yxw.yxnet_cd_center.customer_service.dto;

import com.yxw.yxnet_cd_center.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author Administrator
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="UserPhoneLoginDTO", description="用户手机验证码登录")
public class UserPhoneLoginDTO extends BaseDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String mobilePhone;

    @ApiModelProperty(value = "短信验证码", required = true)
    @NotBlank(message = "短信验证码不能为空")
    private String code;

    @ApiModelProperty(value = "图形验证码", required = true)
    @NotBlank(message = "图形验证码不能为空")
    private String verificationCode;
}
